/*
 * @Author: wangdazhuang
 * @Date: 2024-10-19 09:02:49
 * @LastEditTime: 2025-02-05 19:45:11
 * @LastEditors: wangdazhuang
 * @Description: 
 * @FilePath: /pornhub_app/lib/http/http_const.dart
 */
import '../env/environment_service.dart';
import 'speial_code.dart';

class HttpConst {
  HttpConst._();

  static const kMutiplyFormPostContentType =
      "multipart/form-data;boundary=----------";

  static const kMutiplyPartFileContentType =
      "multipart/form-data;charset=UTF-8";

  static const kContentTypeApplicationJSON = "application/json;charset=UTF-8";

  static const kiOSUA =
      "Mozilla/5.0 iPhone; CPU iOS like Mac OS X AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79;${Environment.appName}/ver=${Environment.iosAppVersion}";

  static const kAndroidUA =
      "Mozilla/ 5.0(Linux; Android U9200) Build/${Environment.appName}/ver=${Environment.androidAppVersion}";

  static const specialCodeList = [
    HttpSpecialCodeEnum.RefreshToken, //301
    HttpSpecialCodeEnum.RefreshLogin, // 302

    HttpSpecialCodeEnum.TokenError, //1001
    HttpSpecialCodeEnum.Forbidden, //1002
    HttpSpecialCodeEnum.UserNotExsit //1003
  ];
}
